#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
const int N=2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define close(); std::ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
//----------------------------------------------------------------------------//
int n,m;
int main()
{
	close();
	//cin>>n>>m;
	n=20,m=22;
	cout<<(4+(m-1)+((n-1)*m))<<'\n';//4下切上下左右,m-1切列 每一列切n-1个

	return 0;
}